<?php if (count($this->paginator)): ?>
	<?php foreach ($this->paginator as $product): ?>
		<div class="item">
			<div class="item_wrapper">
				<div class="image_ca">
					<a href="<?php echo $this->pageUrl(array_merge($this->pageValues, array('action' => 'index', 'target' => 'detail', 'id_product' => $product->id, 'id_category' => $product->getCustomCategory()->path))); ?>">
						<img class="pic_item" src="<?php echo $product->getPrimaryThumbImageUrl(); ?>"
							 title="<?php echo $this->escape($product->name); ?>"/>
					</a>
				</div>
			</div>
			<?php 
				echo $this->social->render('recommendUrl', array(
					'url'			=>  $product->getShareUrl(array('id_page' => $this->social->getIdPage())),
					'product'		=>	$product,
					'pageValues'	=>	$this->pageValues,
					'requestMessage'=>	$this->translate('REQUEST_MESSAGE'),
					'send' 			=> 	false,
					'width' 		=> 	'auto',
					'show_faces'	=>	false
				));
			?>
			<div class="view_detail">
				<div class="ellipsis title">
					<a href="<?php echo $this->pageUrl(array_merge($this->pageValues, array('action' => 'index', 'target' => 'detail', 'id_product' => $product->id, 'id_category' => $product->getCustomCategory()->path))); ?>" target="_top">
						<?php echo $this->escape($product->getProductName()); ?>
					</a>
				</div>
				<div class="ellipsis price">
					<div class="sm_price right"><?php echo (!empty($product->price)) ? $product->getPrice() : '&nbsp;' ?></div>
				</div>
			</div>
		</div>
	<?php endforeach; ?>
<?php endif; ?>
<script>
	$(document).ready(function(){
		$('.item').ymProductItem();
	})
</script>